﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Silverlight.Media.Encoder" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <Style TargetType="local:EncoderElement">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:EncoderElement">
                    <Grid>
                		<Border Background="{TemplateBinding Background}"
                			BorderBrush="{TemplateBinding BorderBrush}"
                			BorderThickness="{TemplateBinding BorderThickness}" d:DesignWidth="236" d:DesignHeight="187" CornerRadius="9" d:LayoutOverrides="Width, Height">
                			<Image x:Name="PART_VideoImage">
                                <Image.CacheMode>
                					<BitmapCache RenderAtScale="1" />
                                </Image.CacheMode>
                            </Image>
                		</Border>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
